package com.change.declare.crm.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.change.common.utils.PageUtils;
import com.change.common.utils.Query;

import com.change.declare.crm.dao.ClientagreementsDao;
import com.change.declare.crm.entity.ClientagreementsEntity;
import com.change.declare.crm.service.ClientagreementsService;


@Service("clientagreementsService")
public class ClientagreementsServiceImpl extends ServiceImpl<ClientagreementsDao, ClientagreementsEntity> implements ClientagreementsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ClientagreementsEntity> page = this.page(
                new Query<ClientagreementsEntity>().getPage(params),
                new QueryWrapper<ClientagreementsEntity>()
        );

        return new PageUtils(page);
    }

}